<!DOCTYPE html>

<!--[if IE 8]><html class="ie8"><![endif]-->
<!--[if IE 9]><html class="ie9"><![endif]-->
<!--[if gt IE 9]><!-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--<![endif]-->
<link href="\css\lbt.css" rel="stylesheet" type="text/css" />
<head>
    <title>买票票电影 - 娱乐看买票票</title>

    <!-- <link rel="dns-prefetch" href="//p0.meituan.net"> -->
    <!-- <link rel="dns-prefetch" href="//p1.meituan.net"> -->
    <!-- <link rel="dns-prefetch" href="//ms0.meituan.net"> -->
    <!-- <link rel="dns-prefetch" href="//s0.meituan.net"> -->
    <!-- <link rel="dns-prefetch" href="//ms1.meituan.net"> -->
    <!-- <link rel="dns-prefetch" href="//analytics.meituan.com"> -->
    <!-- <link rel="dns-prefetch" href="//report.meituan.com"> -->
    <!-- <link rel="dns-prefetch" href="//frep.meituan.com"> -->
    <!-- <link rel="alternate" media="only screen and (max-width: 640px)" href="https://m.maoyan.com/"> -->
    <!-- <link rel="canonical" href="https://maoyan.com/"> -->


    <meta charset="utf-8">
    <meta name="keywords" content="电影,电影购票,电影选座,影院选票,影院购票,电影评分,买票票电影">
    <meta name="description" content="买票票电影是国内观众喜爱的观影平台，为您提供了在线购票服务。同时，买票票电影还为您提供电影预告片、票房查询、电影排行榜、影视资讯等信息。">
    <meta http-equiv="cleartype" content="yes">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">

    <meta name="HandheldFriendly" content="true">
    <meta name="format-detection" content="email=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script type="text/javascript" src="\js\zzsc.js"></script>

    <script>
        "use strict";
        ! function() {
            var i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "_Owl_",
                n = window;
            n[i] || (n[i] = {
                isRunning: !1,
                isReady: !1,
                preTasks: [],
                dataSet: [],
                use: function(i, t) {
                    this.isReady && n.Owl && n.Owl[i](t), this.preTasks.push({
                        api: i,
                        data: [t]
                    })
                },
                add: function(i) {
                    this.dataSet.push(i)
                },
                run: function() {
                    var t = this;
                    if (!this.isRunning) {
                        this.isRunning = !0;
                        var i = n.onerror;
                        n.onerror = function() {
                            this.isReady || this.add({
                                type: "jsError",
                                data: arguments
                            }), i && i.apply(n, arguments)
                        }.bind(this), (n.addEventListener || n.attachEvent)("error", function(i) {
                            t.isReady || t.add({
                                type: "resError",
                                data: [i]
                            })
                        }, !0)
                    }
                }
            }, n[i].run())
        }();
    </script>
    <script>
        cid = "c_6jadt9m";
        ci = 1;
        window.system = {};

        window.openPlatform = '';
        window.openPlatformSub = '';
        window.$mtsiFlag = '0';
    </script>
    <link rel="stylesheet" href="../css/common.6b1d782c.css">
    <link rel="stylesheet" href="../css/home-index.fce66dcb.css">
    <script crossorigin="anonymous" src="../js/stat.88d57c80.js"></script>
    <script>
        if (window.devicePixelRatio >= 2) {
            document.write(
                '<link rel="stylesheet" href="..//s3plus.meituan.net/v1/mss_e2821d7f0cfe4ac1bf9202ecf9590e67/cdn-prod/file:5788b470/image-2x.8ba7074d.css"/>'
            )
        }
    </script>

    <meta name="msvalidate.01" content="F338006073F396CBBDA443AAB6A8BA47">
    <meta name="360-site-verification" content="6f1d12912a62a74ce2f1b3c2e75f6c23">
    <meta name="sogou_site_verification" content="uh9MkgvBm3">
    <style>
        @font-face {
            font-family: stonefont;
            src: url(&#x27;fonts/01e0fbdbd6b5a4bc8ba1fe8a890a649d3440.eot&#x27;);
            src: url(&#x27;fonts/01e0fbdbd6b5a4bc8ba1fe8a890a649d3440.eot#iefix&#x27;) format(&#x27; embedded-opentype&#x27; ),
        url(&#x27;fonts/f0a30a4dda64b4f8f344858115f54fc92296.woff&#x27;) format(&#x27; woff&#x27; );
        }

        .stonefont {
            font-family: stonefont;
        }
    </style>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?703e94591e87be68cc8da0da7cbd0be2";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();





    </script>

    <script type="text/javascript" src="../js/jquery.min.js"></script>
<body>
<div class="header">
    <div class="header-inner">
        <h1><a href="../movie/homepage" class="logo" data-act="icon-click">买票票电影</a></h1>
        <div class="city-container" data-val="{currentcityid:1 }">
            <div class="city-selected">
                <div class="city-name">
                    西安
                    <span class="caret"></span>
                </div>
            </div>
            <div class="city-list" data-val="{ localcityid: 1 }">
                <div class="city-list-header">定位城市：<a class="js-geo-city" data-ci="1">西安</a></div>

            </div>
        </div>


        <div class="nav">
            <ul class="navbar">
                <li><a href="/movie/homepage" data-act="home-click" class="active">首页</a></li>
                <li><a href="../movie/movieAll?status=1" data-act="movies-click">电影</a></li>
                <li><a href="../movie/cinemaAll" data-act="cinemas-click">影院</a></li>
                <li><a href="javascript:list()" data-act="board-click">榜单</a></li>
            </ul>
        </div>

        <div  class="user-info">
            <div class="user-avatar J-login">
                <img id="portrait" src="../images/7dd82a16316ab32c8359debdb04396ef2897.png">
                <ul style="margin-left: 30px" class="user-menu no-login-menu" id="myMessage">
                    <li><a href="../page/login"  data-act="movies-click">登录</a></li>
                </ul>
            </div>
        </div>

        <form action="../movie/getMovie" target="_blank" class="search-form" data-actform="search-click">
            <input name="movieName" class="search" type="search" maxlength="32" placeholder="快来搜索想看的电影吧"
                   autocomplete="off">
            <input class="submit" type="submit" value>
        </form>

        <div class="app-download">
            <a href="../app" target="_blank">
                <span class="iphone-icon"></span>
                <span class="apptext">APP下载</span>
                <span class="caret"></span>
                <div class="download-icon">
                    <p class="down-title">扫码下载APP</p>
                    <p class="down-content">选座更优惠</p>
                </div>
            </a>
        </div>

    </div>
</div>
<div class="header-placeholder"></div>

<div id="playBox">
    <div class="pre"></div>
    <div class="next"></div>
    <div class="smalltitle">
        <ul>
            <li class="thistitle"></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
    <ul id="lbt" class="oUlplay">

    </ul>
</div>

<div class="container" id="app">
    <div class="content">
        <div class="aside">
            <div class="ranking-box-wrapper">
                <div class="panel">
                    <div class="panel-header">
								<span class="panel-title">
									<span class="textcolor_red">
										<h2>票房排行前五名</h2>
									</span>
								</span>
                    </div>
                    <div class="panel-content">
                        <ul class="ranking-wrapper ranking-box">
                           <span id="one"></span>
                           <span id="two"></span>
                        </ul>


                    </div>
                </div>
            </div>

            <div class="most-expect-wrapper">
                <div class="panel">
                    <div class="panel-header">
								<span class="panel-more">
									<span class="panel-arrow panel-arrow-orange"></span>
								</span>
                        <span class="panel-title">
									<span class="textcolor_orange">
										<h2>最受期待</h2>
									</span>
								</span>
                    </div>
                    <div class="panel-content">
                        <ul class="ranking-wrapper ranking-mostExpect">
                            <span id="expect1"></span>
                            <span id="expect2"></span>
                            <span id="expect3"></span>


                        </ul>


                    </div>
                </div>
            </div>


            <!--------------------------------->

<!--------------------------------->


            <div class="top100-wrapper">
                <div class="panel">
                    <div class="panel-header">
								<span class="panel-more">
									<a href="../list" class="textcolor_orange" data-act="all-TOP100-click">
										<span>查看完整榜单</span>
									</a>
									<span class="panel-arrow panel-arrow-orange"></span>
								</span>
                        <span class="panel-title">
									<span class="textcolor_orange">
										<h2>TOP 100</h2>
									</span>
								</span>
                    </div>
                    <div class="panel-content">
                        <ul class="ranking-wrapper ranking-top100">
                            <span id="score1"></span>
                            <span id="score2"></span>
                        </ul>


                    </div>
                </div>
            </div>


        </div>
        <div class="main">
            <div class="movie-grid">
                <div class="panel">
                    <div class="panel-header">
								<span class="panel-more">
									<a href="../movie/movieAll?status=1" class="textcolor_red"
                                       data-act="all-playingMovie-click">
										<span>全部</span>
									</a>
									<span class="panel-arrow panel-arrow-red"></span>
								</span>
                        <span class="panel-title">
									<span class="textcolor_red">
                                        <h2>正在热映(<span id="getMovieCount"></span>部)</h2>
									</span>
								</span>
                    </div>
                    <div class="panel-content">
                        <dl class="movie-list">
                                <span id="getMovie"></span>
                        </dl>
                    </div>
                </div>

                <div class="panel">
                    <div class="panel-header">
								<span class="panel-more">
									<a href="../movie/movieAll?status=2" class="textcolor_blue"
                                       data-act="all-upcomingMovie-click">
										<span>全部</span>
									</a>
									<span class="panel-arrow panel-arrow-blue"></span>
								</span>
                        <span class="panel-title">
									<span class="textcolor_blue">
										<h2>即将上映（<span id="getMovieCount2"></span>部）</h2>
									</span>
								</span>
                    </div>
                    <div class="panel-content">
                        <dl class="movie-list">
                                <span id="undetermined"></span>
                        </dl>
                    </div>
                </div>
                <div class="panel">
                    <div class="panel-header">
								<span class="panel-more">
									<a href="../movie/movieAll?status=3" class="textcolor_red"
                                       data-act="all-hotMovie-click">
										<span>全部</span>
									</a>
									<span class="panel-arrow panel-arrow-red"></span>
								</span>
                        <span class="panel-title">
									<span class="textcolor_red">
										<h2>热播电影</h2>
									</span>
								</span>
                    </div>
                    <div class="panel-content">
                        <dl class="movie-list">
                                <span id="hitTv1"></span>
                                <span id="hitTv2"></span>
                        </dl>


                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<div class="footer">
    <p class="friendly-links">
        关于买票票 :
        <a href="http://ir.maoyan.com/s/index.php#pageScroll0" target="_blank">关于我们</a>
        <span></span>
        <a href="http://ir.maoyan.com/s/index.php#pageScroll1" target="_blank">管理团队</a>
        <span></span>
        <a href="http://ir.maoyan.com/s/index.php#pageScroll2" target="_blank">投资者关系</a>
        &nbsp;&nbsp;&nbsp;&nbsp;
        友情链接 :
        <a href="http://www.meituan.com" data-query="utm_source=wwwmaoyan" target="_blank">美团网</a>
        <span></span>
        <a href="http://www.gewara.com" data-query="utm_source=wwwmaoyan">格瓦拉</a>
        <span></span>
        <a href="http://i.meituan.com/client" data-query="utm_source=wwwmaoyan" target="_blank">美团下载</a>
        <span></span>
        <a href="https://www.huanxi.com" data-query="utm_source=maoyan_pc" target="_blank">欢喜首映</a>
    </p>
    <p class="friendly-links">
        商务合作邮箱：v@maoyan.com
        客服电话：10105335
        违法和不良信息举报电话：4006018900
    </p>
    <p class="friendly-links">
        用户投诉邮箱：tousujubao@meituan.com
        舞弊线索举报邮箱：wubijubao@maoyan.com
    </p>
    <p class="friendly-links  credentials">
        <a href="../about/licence/1" target="_blank">中华人民共和国增值电信业务经营许可证 京B2-20190350</a>
        <span></span>
        <a href="../about/licence/4" target="_blank">营业性演出许可证 京演（机构）（2019）4094号</a>
    </p>
    <p class="friendly-links  credentials">
        <a href="../about/licence/3" target="_blank">广播电视节目制作经营许可证 （京）字第08478号</a>
        <span></span>
        <a href="../about/licence/2" target="_blank">网络文化经营许可证 京网文（2019）3837-369号 </a>
    </p>
    <p class="friendly-links  credentials">
        <a href="../rules/agreement" target="_blank">买票票用户服务协议 </a>
        <span></span>
        <a href="../rules/rule" target="_blank">买票票平台交易规则总则 </a>
        <span></span>
        <a href="../rules/privacy" target="_blank">隐私政策 </a>
    </p>
    <p class="friendly-links  credentials">
        <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010102003232"
           target="_blank">京公网安备
            11010102003232号</a>
        <span></span>
        <a href="http://www.beian.miit.gov.cn/" target="_blank">京ICP备16022489号-1</a>
    </p>
    <p>西安买票票文化传媒有限公司</p>
    <p>
        &copy;<span class="my-footer-year">2016</span>
        买票票电影 maoyan.com</p>
    <div class="certificate">
        <a href="http://sq.ccm.gov.cn:80/ccnt/sczr/service/business/emark/toDetail/350CF8BCA8416C4FE0530140A8C0957E"
           target="_blank">
            <img src="../images/e54374ccf134d1f7b2c5b075a74fca525326.png">
        </a>
        <a href="/about/licence/5" target="_blank">
            <img src="../images/805f605d5cf1b1a02a4e3a5e29df003b8376.png">
        </a>
        <a href="https://www.12377.cn" target="_blank">
            <img src="../images/3cd2a9b7dc179531d20d27a5fd686e783787.png">
        </a>
    </div>
</div>

<script crossorigin="anonymous" src="../js/owl_1.7.11.js"></script>
<script>
    Owl.start({
        project: 'com.sankuai.movie.fe.mywww',
        pageUrl: location.href.split('?')[0].replace(/\/\d+/g, '/:id'),
        devMode: false
    })
</script>
<!--[if IE 8]><script crossorigin="anonymous" src="..//s3plus.meituan.net/v1/mss_e2821d7f0cfe4ac1bf9202ecf9590e67/cdn-prod/file:5788b470/es5-shim.bbad933f.js"></script><![endif]-->
<!--[if IE 8]><script crossorigin="anonymous" src="..//s3plus.meituan.net/v1/mss_e2821d7f0cfe4ac1bf9202ecf9590e67/cdn-prod/file:5788b470/es5-sham.d6ea26f4.js"></script><![endif]-->
<script crossorigin="anonymous" src="../js/common.f4713c37.js"></script>
<script crossorigin="anonymous" src="../js/home-index.8bdce657.js"></script>
</body>
<script>

    $(function(){
        //判断登录内容
        myMessage();
        //西安当前时间
        current();
    })

    //判断登录内容
    function myMessage(){

        $.ajax({
            url:"../user/loginSession",
            type:"get",
            success:function(data){
                var str="";
                if( data != ""  ){
                    str+="<li><a href='../page/myMessage?stu=1' data-act=\"board-click\">我的订单</a></li>";
                    str+="<li><a href='../page/myMessage?stu=2' data-act=\"board-click\">基本信息</a></li>";
                    str+="<li><a href='../page/logout' data-act=\"movies-click\">退出登录</a></li>";

                    $("#portrait").prop("src",data.img)
                    $("#myMessage").html(str);
                }

            }
        })
    }






    //电影详情
    index = function(movieId) {
        //var ids = 1;
        location.href = "/buy/ticket?ids=" + movieId;
    }
    //跳转到榜单页面
    list=function(){
        location.href = "/list";
    }

    $.ajax({
        url:'../movie/getCarousel',
        success:function (data) {
            debugger;
            var str = ""
            for (let i = 0; i < data.length; i++) {
                str +='<li><a  target="_blank"><img onclick="index('+data[i].movieId+')" src="'+data[i].url+'"></a></li>'
            }
            $('#lbt').html(str)
        }
    })

    //正在热映的电影
    $.ajax({
        url:'../movie/getRadientMovie',
        success:function(data){
            var str="";
            for (var i = 0; i <data.length ; i++) {
                if(i>=0&&i<=8){
                str+= '<dd>' +
                    '<div class="movie-item">\n' +
                    '                                    <a href="javascript:index('+data[i].movieId+')" ' +
                    '                                       data-val="{movieid:data[i].movieId}">\n' +
                    '                                        <div class="movie-poster">\n' +
                    '                                            <img class="poster-default" src="../images/loading_2.e3d934bf.png">\n' +
                    '                                            <img class="movie-poster-img"\n' +
                    '                                                 data-src="'+data[i].img+'"\n' +
                    '                                                 alt="'+data[i].movieName+'">\n' +
                    '                                            <div class="movie-overlay movie-overlay-bg">\n' +
                    '                                                <div class="movie-info">\n' +
                    '                                                    <div class="movie-score"><i class="integer">'+data[i].movieGrade+'</i></div>\n' +
                    '                                                    <div class="movie-title movie-title-padding"\n' +
                    '                                                         title="'+data[i].movieName+'"><span>'+data[i].movieName+'</span></div>\n' +
                    '                                                </div>\n' +
                    '                                            </div>\n' +
                    '                                        </div>\n' +
                    '                                    </a>\n' +
                    '                                    <div class="movie-detail movie-detail-strong movie-sale">\n' +
                    '                                        <a href="../lzyConsumer/movieDetailsBy?movieId='+data[i].movieId+'" class="active">购\n' +
                    '                                            票</a>\n' +
                    '                                    </div>\n' +
                    '                                    <div class="movie-ver"></div>\n' +
                    '                                </div>' +
                    '</dd>'
                }
                $("#getMovie").html(str);
            }
        }
    })
    //正在热映的总条数
    $.ajax({
        url:'../movie/getMovieCount',
        success:function(data){
            $("#getMovieCount").html(data)
        }
    })
    //即将上映总条数
    $.ajax({
        url:'../movie/getMovieCount2',
        success:function(data){
            $("#getMovieCount2").html(data)
        }
    })   //
    //即将上映电影
    $.ajax({
        url:'../movie/waitMovie',
        success:function(data){
            var str="";
            for (var i = 0; i <data.length ; i++) {
                str += ' <dd><div class="movie-item">\n' +
                    '                                    <a href="javascript:index('+data[i].movieId+')"' +
                    '                                       data-val="{movieid:1302133}">\n' +
                    '                                        <div class="movie-poster">\n' +
                    '                                            <img class="poster-default" src="../images/loading_2.e3d934bf.png">\n' +
                    '                                            <img class="movie-poster-img"\n' +
                    '                                                 data-src="' + data[i].img + '"\n' +
                    '                                                 alt="'+data[i].movieName+'">\n' +
                    '                                            <div class="movie-overlay movie-overlay-bg">\n' +
                    '                                                <div class="movie-info">\n' +
                    '                                                    <div class="movie-title" title="'+data[i].movieName+'">' + data[i].movieName + '</div>\n' +
                    '                                                </div>\n' +
                    '                                            </div>\n' +
                    '                                        </div>\n' +
                    '                                    </a>\n' +
                    '                                    <div class="movie-detail movie-wish"><span\n' +
                    '                                            class="stonefont">' + data[i].look + '</span>人想看</div>\n' +
                    '                                    <div class="movie-detail movie-detail-strong movie-presale">\n' +
                    '                                        <a class="movie-presale-sep">预告片\n' +
                    '                                        </a><a data-act="presaleUpcomingMovie-click"\n' +
                    '                                               data-val="{movieid:1302133}">预 售</a>\n' +
                    '                                    </div>\n' +
                    '                                    <div class="movie-ver"></div>\n' +
                    '                                </div>\n' +
                    '                                <div class="movie-detail movie-rt">' + data[i].filmSchedule + '上映</div></dd>'
                $("#undetermined").html(str);
            }
        }
    })
    //最受期待的电影
    $.ajax({
        url:'../movie/expectMovie',
        success:function(data){
            var str="";
            var str2="";
            var str3="";
            for (var i = 0; i <data.length ; i++) {
                if(i==0){
                    str+=' <li class="ranking-item ranking-top ranking-index-1">\n' +
                        '                                <a href="javascript:index('+data[i].movieId+')" ' +
                        '                                   data-val="{movieid:1302134}">\n' +
                        '                                    <div class="ranking-top-left">\n' +
                        '                                        <i class="ranking-top-icon"></i>\n' +
                        '                                        <img class="ranking-img  default-img"\n' +
                        '                                             data-src="'+data[i].img+'"\n' +
                        '                                             alt="'+data[i].movieName+'">\n' +
                        '                                    </div>\n' +
                        '                                    <div class="ranking-top-right">\n' +
                        '                                        <div class="ranking-top-right-main">\n' +
                        '                                            <span class="ranking-top-moive-name">'+data[i].movieName+'</span>\n' +
                        '\n' +
                        '                                            <p class="ranking-release-time">上映时间：'+data[i].filmSchedule+'</p>\n' +
                        '\n' +
                        '                                            <p class="ranking-top-wish">\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\n' +
                        '                                                                class="stonefont">'+data[i].look+'</span>人想看\n' +
                        '                                            </p>\n' +
                        '                                        </div>\n' +
                        '                                    </div>\n' +
                        '                                </a>\n' +
                        '                            </li>'
                }
                if(i>=1&&i<=2){
                    str2+='  <li class="ranking-item ranking-index-2">\n' +
                        '                                <a href="javascript:index('+data[i].movieId+')" ' +
                        '                                   data-val="{movieid:1278598}">\n' +
                        '                                    <i class="ranking-index">'+(i+1)+'</i>\n' +
                        '                                    <span class="img-link"><img class="ranking-img default-img"\n' +
                        '                                                                src="'+data[i].img+'"\n' +
                        '                                                                alt="'+data[i].movieName+'"></span>\n' +
                        '                                    <div class="name-link ranking-movie-name">'+data[i].movieName+'</div>\n' +
                        '\n' +
                        '                                    <span class="ranking-num-info"><span\n' +
                        '                                            class="stonefont">'+data[i].look+'</span>人想看</span>\n' +
                        '                                </a>\n' +
                        '                            </li>'
                }
                if(i>=3){
                    str3+=' <li class="ranking-item ranking-index-4">\n' +
                        '                                <a href="javascript:index('+data[i].movieId+')"' +
                        '                                   data-val="{movieid:1198179}">\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t<span class="normal-link">\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t<i class="ranking-index">'+(i+1)+'</i>\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t<span class="ranking-movie-name">'+data[i].movieName+'</span>\n' +
                        '\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t<span class="ranking-num-info">\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t\t<span\n' +
                        '                                                            class="stonefont">'+data[i].look+'</span>人想看\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t</span>\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t</span>\n' +
                        '                                </a>\n' +
                        '                            </li>'
                }

            }
            $("#expect1").html(str);
            $("#expect2").html(str2);
            $("#expect3").html(str3);
        }

    })
    //查询高评分电影前十
    $.ajax({
        url:'../movie/getScore',
        success:function(data){
            var str1="";
            var str2="";
            for (var i = 0; i <data.length ; i++) {
                if(i==0){
                str1=' <li class="ranking-item ranking-top ranking-index-1">\n' +
                    '                                <a href="javascript:index('+data[i].movieId+')"' +
                    '                                   data-val="{movieid:1200486}">\n' +
                    '                                    <div class="ranking-top-left">\n' +
                    '                                        <i class="ranking-top-icon"></i>\n' +
                    '                                        <img class="ranking-img  default-img"\n' +
                    '                                             data-src="'+data[i].img+'"\n' +
                    '                                             alt="'+data[i].movieName+'">\n' +
                    '                                    </div>\n' +
                    '                                    <div class="ranking-top-right">\n' +
                    '                                        <div class="ranking-top-right-main">\n' +
                    '                                            <span class="ranking-top-moive-name">'+data[i].movieName+'</span>\n' +
                    '\n' +
                    '\n' +
                    '                                            <p class="ranking-top-wish">\n' +
                    '                                                <span class="stonefont">'+data[i].movieGrade+'</span>分\n' +
                    '                                            </p>\n' +
                    '                                        </div>\n' +
                    '                                    </div>\n' +
                    '                                </a>\n' +
                    '                            </li>'
                }
                if(i>0){
                    str2+=' <li class="ranking-item ranking-index-2">\n' +
                        '                                <a href="javascript:index('+data[i].movieId+')"' +
                        '                                   data-val="{movieid:1200486}">\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t<span class="normal-link">\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t<i class="ranking-index">'+(i+1)+'</i>\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t<span class="ranking-movie-name">'+data[i].movieName+'</span>\n' +
                        '\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t<span class="ranking-num-info">\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="stonefont">'+data[i].movieGrade+'</span>分\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t\t</span>\n' +
                        '\t\t\t\t\t\t\t\t\t\t\t</span>\n' +
                        '                                </a>\n' +
                        '                            </li>'
                }
            }
            $("#score1").html(str1);
            $("#score2").html(str2);
        }
    })
//热播电影
$.ajax({
    url:"../movie/queryHitTv",
    success:function(data){
        var str1="";
        var str2="";
        for (var i = 0; i <data.length ; i++) {
            if(i==0){
                str1+='<dd><div class="movie-item">\n' +
                    '                                    <a href="javascript:index('+data[i].movieId+')"' +
                    '                                       data-val="{movieid:301}">\n' +
                    '                                        <div class="movie-poster movie-poster-long">\n' +
                    '                                            <img class="poster-default" src="'+data[i].img+'">\n' +
                    '                                            <img class="movie-poster-img"\n' +
                    '                                                 data-src="'+data[i].img+'"\n' +
                    '                                                 alt="'+data[i].movieName+'">\n' +
                    '                                            <div class="movie-overlay movie-overlay-bg">\n' +
                    '                                                <div class="movie-info">\n' +
                    '                                                    <div class="movie-score"><i class="integer">'+data[i].movieGrade+'</i></div>\n' +
                    '                                                    <div class="movie-title movie-title-padding" title="'+'+data[i].movieName+'+'">\n' +
                    '                                                        '+data[i].movieName+'</div>\n' +
                    '                                                </div>\n' +
                    '                                            </div>\n' +
                    '                                        </div>\n' +
                    '                                    </a>\n' +
                    '                                    <div class="movie-ver"><i class="imax3d"></i></div>\n' +
                    '                                </div>' +
                    '</dd>'
            }
            if(i>=1){
                str2+='<dd> <div class="movie-item">\n' +
                    '                                    <a href="/films/246082" target="_blank" data-act="hotMovie-click"\n' +
                    '                                       data-val="{movieid:246082}">\n' +
                    '                                        <div class="movie-poster">\n' +
                    '                                            <img class="poster-default" src="'+data[i].img+'">\n' +
                    '                                            <img class="movie-poster-img"\n' +
                    '                                                 data-src="'+data[i].img+'"\n' +
                    '                                                 alt="'+data[i].movieName+'">\n' +
                    '                                            <div class="movie-overlay movie-overlay-bg">\n' +
                    '                                                <div class="movie-info">\n' +
                    '                                                    <div class="movie-score"><i class="integer">'+data[i].movieGrade+'</i></div>\n' +
                    '                                                    <div class="movie-title movie-title-padding" title="'+data[i].movieName+'">\n' +
                    '                                                        '+data[i].movieName+'</div>\n' +
                    '                                                </div>\n' +
                    '                                            </div>\n' +
                    '                                        </div>\n' +
                    '                                    </a>\n' +
                    '                                    <div class="movie-ver"></div>\n' +
                    '                                </div></dd>'
            }
        }
        $("#hitTv1").html(str1);
        $("#hitTv2").html(str2);
    }

})


//票房排行前五
$.ajax({
    url:'../movie/getMoney',
    success:function(data){
        var str1="";
        var str2="";
        for (var i = 0; i <data.length ; i++) {
           if(i==0){
               str1+=' <li class="ranking-item ranking-top ranking-index-1">\n' +
                   '                                <a href="javascript:index('+data[i].movieId+')" ' +
                   '                                   data-val="{movieid:343034}">\n' +
                   '                                    <div class="ranking-top-left">\n' +
                   '                                        <i class="ranking-top-icon"></i>\n' +
                   '                                        <img class="ranking-img  default-img"\n' +
                   '                                             data-src="'+data[i].img+'"\n' +
                   '                                             alt="'+data[i].movieName+'">\n' +
                   '                                    </div>\n' +
                   '                                    <div class="ranking-top-right">\n' +
                   '                                        <div class="ranking-top-right-main">\n' +
                   '                                            <span class="ranking-top-moive-name" id="test2"></span>\n' +
                   '\n' +
                   '\n' +
                   '                                            <p class="ranking-top-wish">\n'
                   if(data[i].money>=100000000&&data[i].money<=999999999){
                       str1+='<span class="stonefont">'+(data[i].money/100000000).toFixed(2)+'</span>亿\n'
                   }
                   else if(data[i].money>=10000000&&data[i].money<=99999999){
                       str1+='<span class="stonefont">'+(data[i].money/10000000).toFixed(2)+'</span>千万\n'
                   }
                   else if(data[i].money>=1000000&&data[i].money<=9999999){
                       str1+='<span class="stonefont">'+(data[i].money/10000).toFixed(2)+'</span>万\n'
                   }
                   else if(data[i].money>=100000&&data[i].money<=999999){
                       str1+='<span class="stonefont">'+(data[i].money/10000).toFixed(2)+'</span>万\n'
                   }
               str1+=
                   '                                            </p>\n' +
                   '                                        </div>\n' +
                   '                                    </div>\n' +
                   '                                </a>\n' +
                   '                            </li>'
           }
           if(i>=1){
               str2+=' <li class="ranking-item ranking-index-2">\n' +
                   '                                <a href="javascript:index('+data[i].movieId+')" ' +
                   '                                   data-val="{movieid:343034}">\n' +
                   '\t\t\t\t\t\t\t\t\t\t\t<span class="normal-link">\n' +
                   '\t\t\t\t\t\t\t\t\t\t\t\t<i class="ranking-index">'+(i+1)+'</i>\n' +
                   '\t\t\t\t\t\t\t\t\t\t\t\t<span class="ranking-movie-name">'+data[i].movieName+'</span>\n' +
                   '\n' +
                   '\t\t\t\t\t\t\t\t\t\t\t\t<span class="ranking-num-info">\n'
               if(data[i].money>=100000000&&data[i].money<=999999999){
                   str2+='<span class="stonefont">'+(data[i].money/100000000).toFixed(2)+'</span>亿\n'
               }
               else if(data[i].money>=10000000&&data[i].money<=99999999){
                   str2+='<span class="stonefont">'+(data[i].money/10000000).toFixed(2)+'</span>千万\n'
               }
               else if(data[i].money>=1000000&&data[i].money<=9999999){
                   str2+='<span class="stonefont">'+(data[i].money/10000).toFixed(2)+'</span>万\n'
               }
               else if(data[i].money>=100000&&data[i].money<=999999){
                   str2+='<span class="stonefont">'+(data[i].money/10000).toFixed(2)+'</span>万\n'
               }
                  str2+= '\t\t\t\t\t\t\t\t\t\t\t\t</span>\n' +
                   '\t\t\t\t\t\t\t\t\t\t\t</span>\n' +
                   '                                </a>\n' +
                   '                            </li>'
           }
        }
        $("#one").html(str1);
        $("#two").html(str2);
    }
})




//西安当前时间
    current=function () {
        $("#current").html(new Date().toLocaleDateString());
    }



</script>

</html>
